import 'package:flutter/material.dart';

class EditableTextPage extends StatefulWidget {
  @override
  _EditableTextPageState createState() => _EditableTextPageState();
}

class _EditableTextPageState extends State<EditableTextPage> {
  TextEditingController textEditingController =
      TextEditingController(text: 'init text');
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        height: 100,
        color: Colors.green,
        child: EditableText(
          style: TextStyle(color: Colors.red),
          backgroundCursorColor: Colors.green,
          controller: textEditingController,
          cursorColor: Colors.blue,
          focusNode: FocusScopeNode(),
        ),
      ),
    );
  }
}
